package com.meilai.project.controller.mini.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.dto.base.SimpleObj;
import com.meilai.project.entity.business.customer.CustomerNeed;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.util.List;

/**
 * @author 张驰
 * @description 客户需求VO
 * @date 2022-09-05 11:26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel
public class MiniCustomerNeedVO extends CustomerNeed {
    @ApiModelProperty(value = "开始日期")
    @JsonFormat(pattern = "yyyy.MM.dd")
    private LocalDate vo_begin_date;
    @ApiModelProperty(value = "结束日期")
    @JsonFormat(pattern = "yyyy.MM.dd")
    private LocalDate vo_end_date;

    @ApiModelProperty(value = "客户")
    private String customer;
    @ApiModelProperty(value = "楼盘")
    private List<SimpleObj> buildings;
    @ApiModelProperty(value = "需求媒体类型和数量")
    private List<MiniCustomerNeedMTVO> mt_need;
    @ApiModelProperty(value = "需求点位总数量")
    private Integer need_count_sum;

    // todo
    @ApiModelProperty("提交人名称")
    private String user_name;
}
